//
//  TJConst.swift
//  TJSinaWeibo
//
//  Created by 唐后能 on 16/4/9.
//  Copyright © 2016年 itheima. All rights reserved.
//

import UIKit

// 控制台打印
func TJPrint(item:Any,file:String = __FILE__,function:String = __FUNCTION__,line:Int = __LINE__) {
    
    #if DEBUG
        print("文件:" + (file as NSString).lastPathComponent + ", 方法:\(function), 位置:\(line)行, 内容:\(item)")
    #endif
}


// tabBar中item的个数.
let TJTabBarBtnCount = 5


// MARK: 授权相关.
// https://api.weibo.com/oauth2/authorize?client_id=1147573116&redirect_uri=http://www.baidu.com
// weibo授权的URL:
let oauthURLString = "https://api.weibo.com/oauth2/authorize"
// 应用的appKEY:client_id
let client_id = "1147573116"
// 授权回调地址redirect_uri
let redirect_uri = "http://www.baidu.com"
// 
let client_secret = "f6d935987b9d36812b78572431e7eecc"

// MARK: 用户信息保存路径.
var accountPath = (NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask.UserDomainMask, true).last! as NSString).stringByAppendingString("/userAccount.plist")

// 默认字体大小.
let TJWelcomeLabelFontSize:CGFloat = 14

// 新版本特性图片数量.
let NumberOfNewFeatureCount = 4

// MARK: 微博cell相关.
// cell子控件的间距.
let TJStatusCellMargin:CGFloat = 8

// 头像尺寸(宽高一样.)
let TJStatusCellIconWH = 35

// 微博内容字体大小.
let TJStatusContentSize:CGFloat = 14

// 用户名大小.
let TJNameLbelTextSize:CGFloat = 14

// 时间和来源大小.
let TJTimeSize:CGFloat = 11

// 下拉提示框的高度.
let tipLabelHeight: CGFloat = 44




